import { createRouter, createWebHistory } from 'vue-router'
import Layout from "../layout/Layout";

const routes = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    children:[
      {
        path: '/home',
        name: 'Home',
        component: () => import("@/views/Home")
      },
      {
        path: '/department',
        name: 'Department',
        component: () => import("@/views/Department")
      },
      {
        path: '/salary',
        name: 'Salary',
      }
    ]
  },

];

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
